#@head() 
#@header()
<title>融资需求管理</title>
#@aside("auxiliary")
<link href="#(path)/assets/plugins/umeditor1.2.3-utf8-jsp/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="#(path)/assets/plugins/WebUploader/webuploader.css">
<script type="text/javascript" src="#(path)/assets/plugins/WebUploader/webuploader.js"></script>
<div class="content-wrapper">
	<section class="content">
		<div class="nav-tabs-custom">
			<ul class="nav nav-tabs">
              <li class="active" ><a href="#(path)/admin/page/auxiliary-addenterprise" style="cursor:pointer" >新增企业用户</a></li>
            </ul>
            <div class="tab-content" style="width:60%">
			  <div class="tab-pane active" id="tab_1">
						<table  id="example1" class="table table-striped">
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >公司名称：</td>
								<td>
									<input id="companyName" type="text" class="form-control" placeholder="公司名称" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >企业网址：</td>
								<td>
									<input id="website" type="text" class="form-control" placeholder="企业网址" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >企业地址：</td>
								<td>
									<input id="address" type="text" class="form-control" placeholder="企业地址" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >企业简介：</td>
								<td>
									<input id="summary"  type="text" class="form-control" placeholder="企业简介" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >组织机构代码：</td>
								<td>
									<input id="organizationNo"  type="text" class="form-control" placeholder="组织机构代码" >
								</td>
							</tr> 
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >营业执照号：</td>
								<td>
									<input id="licenseNo"  type="text" class="form-control" placeholder="营业执照号" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >营业执照所在地：</td>
								<td>
									<input id="licenseAddress"  type="text" class="form-control" placeholder="营业执照所在地" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >执照过期日：</td>
								<td>
									<input id="licenseExpireDate" onclick="WdatePicker()"  type="text" class="form-control" placeholder="执照过期日（营业期限）" >
								</td>
							</tr>  
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >营业范围：</td>
								<td>
									<input id="businessScope"  type="text" class="form-control" placeholder="营业范围" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >联系电话：</td>
								<td>
									<input id="telephone"  type="text" class="form-control" placeholder="联系电话" >
								</td>
							</tr>
							
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >联系Email：</td>
								<td>
									<input id="email"  type="text" class="form-control" placeholder="联系Email" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >企业法人：</td>
								<td>
									<input id="legalPerson"  type="text" class="form-control" placeholder="企业法人" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >法人身份证号码：</td>
								<td>
									<input id="certNo"  type="text" class="form-control" placeholder="法人身份证号码" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >法人手机号码：</td>
								<td>
									<input id="legalPersonPhone"  type="text" class="form-control" placeholder="法人手机号码" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >法人银行卡号：</td>
								<td>
									<input id="bankAccountNo"  type="text" class="form-control" placeholder="银行卡号" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >开户银行：</td>
								<td>
									<select id="bankCode" class="form-control">
										
									</select>
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >开户行省份：</td>
								<td>
									<input id="province"  type="text" class="form-control" placeholder="列：浙江省" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >开户行城市：</td>
								<td>
									<input id="city"  type="text" class="form-control" placeholder="列：杭州市" >
								</td>
							</tr>
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >支行名称：</td>
								<td>
									<input id="bankBranch"  type="text" class="form-control" placeholder="支行名称" >
								</td>
							</tr>
							<!--<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >文件名称：</td>
								<td>
									<input id="fileName"  type="text" class="form-control" placeholder="文件名称" >
								</td>
							</tr>
							 
							<tr>
								<td align="right" style="font-weight:600;line-height:35px;width:15%;" >文件摘要：</td>
								<td>
									<input id="digest"  type="text" class="form-control" placeholder="文件摘要" >
								</td>
							</tr>-->
						</table>
						
				  <!-- /.box-body -->
				  <div class="box-footer">
					<button id="submit" type="submit" style="margin-left:10px;" class="btn btn-info ">提交</button>
					<button type="submit" style="margin-left:10px;" class="btn btn-default">取消</button>
				  </div>
              </div>
            <!-- /.tab-content -->
          </div>
	</section>
</div> 
#@footer()
<script>
$(document).ready(function() {
	//$.getJSON("/sys/area?token=#(session.token??)&page=1&size=999", function(citilist) {
		
	//});
	$.getJSON("/card/bankCode?token=#(session.token??)&page=1&size=999", function(citilist) {
		
		$.each(citilist.data, function(i, item){ 
			$("#bankCode").append("<option value="+item.code+" >"+item.name+"</option>");
		});
	});
	
	$("#submit").click(function() {
		layer.confirm('是否确认提交？', {btn : [ '确认', '取消' ]}, function() {
			var params = getFormVals("#tab_1");
			
			ajax("#(path)/userAudit?token=#(session.token??)",params,function(data){
				if(data.code=='success'){
					layer.msg(data.msg, {icon:1},function(){
						location.href="#(path)/admin/page/auxiliary-enterprise"
					});
				}else if(data.code=='error'){
					layer.msg(data.msg, {icon : 2});
				}
			});
		}, function() {
			layer.msg('已取消！', {icon : 1});
		});
	}); 
	
});
</script>

</body>
</html>

